﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace COFE.Core.Utils
{
    public static class ResourceUtils
    {
        public static Stream GetEmbeddedResource(object caller, string path)
        {
            path = caller.GetType().Assembly.GetName().Name + "." + path.Replace("\\", ".");            
            return caller.GetType().Assembly.GetManifestResourceStream(path);
        }

    }
}
